<template>
  <view class="btn-container">
    <view class="message-btn" @click="handleRecord">
      录下想对Ta说的话
      <view>
        <image src="../../static/huatong.png" mode=""></image>
      </view>
    </view>
    <view class="message-btn" @click="handleSign">
      不录音给Ta写祝福
      <view>
        <image src="../../static/shuxie.png" mode=""></image>
      </view>
    </view>
  </view>
</template>

<script>
  export default {
    name: "make-btn-container",
    data() {
      return {

      };
    },
    methods: {
      gotoSignature() {
        uni.navigateTo({
          url: '/pages/signature/signature'
        })
      },
      handleRecord() {
        this.$emit("show-popup")
      },
      handleSign() {
        this.$emit('show-sign')
      }
    }
  }
</script>

<style lang="scss">
  .btn-container {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .message-btn {
    position: relative;
    margin-bottom: 30rpx;
    height: 90rpx;
    width: 100%;
    border: #4bc7bd 1px solid;
    border-radius: 90rpx;
    font-size: 16px;
    line-height: 1.9;
    padding: 15rpx 20rpx;
    box-sizing: border-box;
  }

  .message-btn view {
    position: absolute;
    height: 100%;
    width: 180rpx;
    right: 0;
    top: 0;
    background-color: #4bc7bd;
    border-radius: 90rpx;
    display: flex;
    align-items: center;
    justify-content: center;

    image {
      width: 60rpx;
      height: 60rpx;
    }
  }
</style>